import Layout from '@/layout'

const Router = {
  path: '/clientManagement',
  component: Layout,
  redirect: '/business-input',
  name: 'clientManagement',
  
  meta: {
    title: '用户端管理',
    icon: 'icon_client'
  },
  children: [
    {
      path: 'business-input',
      component: () => import('@/views/clientManagement/businessInput'),
      name: 'BusinessInput',
      meta: { title: '未入驻商家录入', noCache: true }
    },
    {
      path: 'business-setting',
      component: () => import('@/views/clientManagement/businessSetting'),
      name: 'BusinessSetting',
      meta: { title: '推荐商户设置', noCache: true }
    },
    {
        path: 'shop-detail',
        component: () => import('@/views/clientManagement/shopDetail'),
        hidden: true,
        name: 'shopDetail',
        meta: { title: '店铺信息', noCache: true }
    },
    {
        path: 'newly-build',
        component: () => import('@/views/clientManagement/newlyBuild'),
        hidden: true,
        name: 'newlyBuild',
        meta: { title: '店铺信息录入', noCache: true }
    },
    {
      path: 'card-recommend',
      component: () => import('@/views/clientManagement/cardRecommend'),
      name: 'cardRecommend',
      meta: { title: '爆卡推荐设置', noCache: true }
    },
    {
      path: 'cashier-broadcast',
      component: () => import('@/views/clientManagement/cashierBroadcast'),
      name: 'cashierBroadcast',
      meta: { title: '收银播报机管理', noCache: true }
    },
  ]
}

export default Router
